package org.itboys.mobile.dto.order;


import org.itboys.mobile.dto.MobileBaseDto;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 作者：jiangxiong
 * 日期：2016年11月25日
 * 联系方式 ：empty90911@126.com
 * 描述：农厨_订单_商品_DTO
 */
public class SundayOrderDto extends MobileBaseDto {
    //基础信息
    private String orderNo;//订单编号
    private BigDecimal totalAmount;//订单金额应付(钱或积分)
    private BigDecimal payAmount;//订单金额实付(钱或积分)
    private Integer orderStatus;//订单状态
    private String receiveName;//收货人
    private String receiveMobile;//收货电话
    private String receiveAddress;//收货地址
    private BigDecimal sendAmount;//配送费
    private String sendCompany;//快递公司
    private String sendCompanyCode;//快递公司编号
    private String sendCode;//运单编号
    private String remark;//订单备注
    //时间信息
    private String sendTime;//配送时间
    private String receiveTime;//收货时间
    private List<SundayOrderProductDto> products;
    public SundayOrderDto() {
    }

    public SundayOrderDto(long id, String createTime, String createDate, String orderNo, BigDecimal totalAmount, BigDecimal payAmount, Integer orderStatus, String receiveName, String receiveMobile, String receiveAddress, BigDecimal sendAmount, String sendCompany, String sendCompanyCode, String sendCode, String remark, String sendTime, String receiveTime, List<SundayOrderProductDto> products) {
        super(id, createTime, createDate);
        this.orderNo = orderNo;
        this.totalAmount = totalAmount;
        this.payAmount = payAmount;
        this.orderStatus = orderStatus;
        this.receiveName = receiveName;
        this.receiveMobile = receiveMobile;
        this.receiveAddress = receiveAddress;
        this.sendAmount = sendAmount;
        this.sendCompany = sendCompany;
        this.sendCompanyCode = sendCompanyCode;
        this.sendCode = sendCode;
        this.remark = remark;
        this.sendTime = sendTime;
        this.receiveTime = receiveTime;
        this.products = products;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }



    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getReceiveName() {
        return receiveName;
    }

    public void setReceiveName(String receiveName) {
        this.receiveName = receiveName;
    }

    public String getReceiveMobile() {
        return receiveMobile;
    }

    public void setReceiveMobile(String receiveMobile) {
        this.receiveMobile = receiveMobile;
    }

    public String getReceiveAddress() {
        return receiveAddress;
    }

    public void setReceiveAddress(String receiveAddress) {
        this.receiveAddress = receiveAddress;
    }



    public BigDecimal getSendAmount() {
        return sendAmount;
    }

    public void setSendAmount(BigDecimal sendAmount) {
        this.sendAmount = sendAmount;
    }

    public String getSendCompany() {
        return sendCompany;
    }

    public void setSendCompany(String sendCompany) {
        this.sendCompany = sendCompany;
    }

    public String getSendCompanyCode() {
        return sendCompanyCode;
    }

    public void setSendCompanyCode(String sendCompanyCode) {
        this.sendCompanyCode = sendCompanyCode;
    }

    public String getSendCode() {
        return sendCode;
    }

    public void setSendCode(String sendCode) {
        this.sendCode = sendCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String  getOrderStatusStr(){
        String orderStatusStr= "";
        if(orderStatus==null)return orderStatusStr;

        switch (orderStatus) {
            case 1:
                orderStatusStr="待付款";
                break;
            case 2:
                orderStatusStr="待配送";
                break;
            case 3:
                orderStatusStr="配送中";
                break;
            case 4:
                orderStatusStr="待评价";
                break;
            case 5:
                orderStatusStr="已评价";
                break;
            case 6:
                orderStatusStr="待退款";
                break;
            case 7:
                orderStatusStr="已退款";
                break;
            case 8:
                orderStatusStr="待退货";
                break;
            case 9:
                orderStatusStr="已退货";
                break;
            case 10:
                orderStatusStr="已取消";
                break;
            default:
                break;
        }
        return orderStatusStr;
    }
}


